<?php 
/** * @version $Id: controller.php 18 2009-12-07 11:22:56Z truongnhan0311 
$ * @author truongnhan0311 * @package	wrd component 
*/// no direct accessdefined( '_JEXEC' ) or die( 'Restricted access' );
?>
<h2 class="title">ARE YOU OUR MEMBER? </h2>
	
<div id="pageLogin">

<form action="<?php echo JRoute::_('index.php?option=com_wrd&task=profile.save'); ?>" method="post" >
	<div class="subdiv" id="subLeft">
		<h3>Create Account</h3>
		<table width="100%" cellpadding="5" cellspacing="0" class="tbl_registration">		
<tr>	
		<td colspan="2">			
		<em style="font-style: italic;">Email <font style="color: red;">* </font></em>			
</td>		</tr>		
<tr>			<td colspan="2">			
	<input type="text" title="User Email" maxlength="45" size="45" value="" id="email1" name="email1" class="user_email textbox"/> 
	
	<?php //if(!empty($this->configField['email']['f_tip'])):?>					
	<span class="hint">						<?php //echo $this->configField['email']['f_tip']; ?>                    
    Please fill email!						<span class="hint-pointer">&nbsp;</span>				
	</span>				
		<?php //endif ; ?>			</td>	
	</tr>		
	<tr>		
	<td colspan="2">				
	<em style="font-style: italic;">Password <font style="color: red;">* </font></em>		
	</td>		</tr>		
	<tr>			
	<td colspan="2">			
	<input type="password" title="Password" maxlength="45" size="45" value="" id="password1" name="password1" class="user_pass textbox"/> 		
	<?php //if(!empty($this->configField['password']['f_tip'])):?>					
	<span class="hint">Please fill password!<span class="hint-pointer">&nbsp;</span>
	</span>				
	<?php //endif ; ?>			
	</td>		
	</tr>		
	<tr>			
	<td colspan="2">				
	<em style="font-style: italic;"> Confirm password <font style="color: red;">* </font></em>
	</label>			</td>		</tr>		<tr>			<td colspan="2">		
	<input type="password" title="Password Confirm" maxlength="45" size="45" value="" id="password2" name="password2" class="user_pass_confirm textbox"/> 
	<?php //if(!empty($this->configField['password_confirm']['f_tip'])):?>			
	<span class="hint">Please fill confirm password!
	<?php //echo $this->configField['password_confirm']['f_tip']; ?>
	<span class="hint-pointer">&nbsp;</span>
	</span>				
	<?php //endif ; ?>	<br />
	<em style="font-style: italic;">Required field <font style="color: red;">* </font></em>	
	</td>	
	</tr>
	<tr>		
	<td colspan="2">				
	<input type="submit" value="Submit" id="submit" name="submit" class="button_submit bt" />			
	</td>		
	</tr>	
	</table>
	</div><!-- end div#subLeft -->
	<input type="hidden" name="profile" value="<?php echo $this->detail->id ?>">	
	<input type="hidden" name="option" value="com_wrd">	
	<input type="hidden" name="task" value="profile.save">	
	<?php echo JHtml::_('form.token');?>
</form> <!-- end form register -->

<!-- ################################################################################ -->
<!-- Start form Sing In -->	
<form action="<?php echo JRoute::_('index.php'); ?>" method="post" >
	<div class="subdiv" id="subRight">
		<h3>Returning? Sign in</h3>
		<table width="100%" id="default_registration_form" cellpadding="5" cellspacing="0" class="tbl_registration">	
	<tr>			
	<td><em style="font-style: italic;margin-left: -198px;">Email <font style="color: red;">* </font></em>	</td>		
	</tr>		
	<tr>			
	<td>				
	<input id="modlgn-username" type="text" maxlength="50" size="50" value="" name="username" class="username textbox" />				
	<?php if(!empty($this->configField['username']['f_tip'])):?>				
	<span class="hint">					
	<?php echo $this->configField['username']['f_tip']; ?>						
	<span class="hint-pointer">&nbsp;</span>					
	</span>				<?php endif; ?>			</td>		
	</tr>		<tr>			
	<td><em style="font-style: italic; margin-left: -170px;">Password <font style="color: red;">* </font></em>	</td>		
	</tr>		<tr>			<td>			
	<input id="modlgn-passwd" type="password" maxlength="50" size="50" value="" name="password" class="password textbox" />				
	<?php if(!empty($this->configField['password']['f_tip'])):?>					<span class="hint">						
	<?php echo $this->configField['password']['f_tip']; ?>					
	<span class="hint-pointer">&nbsp;</span>					</span>				
	<?php endif ; ?>			
	<br /><br />
	<a style="float: left;margin-left: 66px;" href="index.php?option=com_users&view=reset&Itemid=168">Forgot password</a>
	<br /><br />
	<a style="float: left;margin-left: 66px;" href="index.php?option=com_users&view=remind&Itemid=168">Forgot username</a>
	</td>		</tr>		
	<tr>			
		<td>				
			<input id="loginbt" type="submit" value="<?php echo JText::_('Submit') ?>" name="submit" class="button_submit bt" />				
			<input type="hidden" name="option" value="com_wrd" />				
			<input type="hidden" name="task" value="profile.login" />				
			<input type="hidden" name="return" value="<?php echo $return; ?>" />				
			<?php echo JHtml::_('form.token'); ?>			
		</td>		
	</tr>		
	<tr>			
	<td>				    			
</td>		
</tr>	
</table>
</div><!-- end div#subRight-->
</form>	
</div>


	
	
